import request from '@/utils/request'

// 获取七牛上传的token
export function getToken() {
  return request({
    url: '/upload/getToken',
    method: 'post'
  })
}

// 通过hash获取图片的下载地址
export function getUrl(data) {
  return request({
    url: '/upload/getUrl',
    method: 'post',
    data
  })
}
